﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.IO;
public partial class Admin_ThemTT : System.Web.UI.Page
{
    Tintuc TTT = new Tintuc();
    protected void Page_Load(object sender, EventArgs e)
    {
       
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
       
       
       string  hinh = Path.GetFileName(File1.PostedFile.FileName);
        File1.PostedFile.SaveAs(Server.MapPath("../Pictures/HinhTT/" +hinh));
        TTT.ThemTT(TextBox1.Text, TextBox2.Text, TextBox3.Text, TextBox4.Text, TextBox5.Text, hinh);
        


       
    }
}
